import lmdb
lmdb_path='/ssd/wsl/LMDB/MLT/MySynthMLT/'
#langs=['Arabic','Bangla','Chinese','Latin','Hindi','Korean','Japanese']
langs=['Chinese','Japanese']
for lang in langs:
    env = lmdb.open(lmdb_path+lang, max_readers=32, readonly=True, lock=False, readahead=False, meminit=False)
    with env.begin(write=False) as txn:
        n_samples = int(txn.get('num-samples'.encode()))
        print(lang,n_samples)